import fetch from '@/axios/fetch'


export function getSlaveList(obj) {
  return fetch({
    url: '/api/slave/list',
    method: 'get',
    data: obj
  })
}

export function test(obj) {
  return fetch({
    url: '/api/slave/test',
    method: 'put',
    data: obj
  })
}

export function save(obj) {
  return fetch({
    url: '/api/slave/save',
    method: 'put',
    data: obj
  })
}


export function remove(obj) {
  return fetch({
    url: '/api/slave/delete/' + obj,
    method: 'delete'
  })
}

